import React from "react";

import PropTypes from 'prop-types'

import styles from './index.module.css'

import { BASE_URL } from "../../utils/url";

export default function NoHouse({children}) {
  return (
    <div className = {styles.noHouse}>
      <img src={`${BASE_URL}/img/not-found.png`} alt="" />
      <p className={styles.msg}>{children}</p>
    </div>
  )
}

NoHouse.propTypes = {
  children: PropTypes.node.isRequired
}